ShortPixel\Model\Image\ImageModel D

Total Complexity 312
Dependencies 6
Dependents 24
Total lines 1,527
Lines of code 1,051
Logical lines of code 595
Comment lines 153
Methods 55
Properties 12

Methods 55

Method Rating Maintainability Complexity Lines of code
createParamList()
D
30 36 113
handleOptimized()
B
31 18 116
getProcessableReason()
B
39 19 61
isProcessable()
B
49 18 31
handleOptimizedFileType()
B
43 16 51
getImageType()
A
45 15 43
createBackup()
A
41 13 62
isProcessableFileType()
A
51 13 26
isRestorable()
A
43 11 52
isPathExcluded()
A
52 10 23
restore()
A
40 7 67
isProcessableSize()
A
54 10 19
setImageSize()
A
55 9 22
isSizeExcluded()
A
53 9 21
isImage()
A
50 8 31
isExtensionExcluded()
A
51 8 28
onDelete()
A
57 8 17
handleWebp()
S
49 5 32
getCountOptimizeData()
S
54 5 20
getImprovement()
S
58 5 15
get()
S
63 5 11
handleAvif()
S
54 4 21
matchExludeRegexPattern()
S
63 4 11
isUserExcluded()
S
60 3 15
setMeta()
S
60 3 15
verifyImage()
S
64 4 10
getMeta()
S
62 3 12
getReason()
S
67 3 8
setWebp()
S
68 3 7
setAvif()
S
68 3 7
matchExcludePattern()
S
66 3 9
isProcessableAnyFileType()
S
65 3 9
isFileSizeOK()
S
65 3 10
exists()
S
67 2 8
cancelUserExclusions()
S
72 2 6
isOptimized()
S
68 2 8
setVirtualToReal()
S
69 1 7
fs()
S
80 1 3
toClass()
S
81 1 3
getOptimizeUrls()
S
100 1 0
hasMeta()
S
79 1 3
didRecordChange()
S
82 1 3
recordChanged()
S
81 1 3
saveMeta()
S
100 1 0
getWebp()
S
80 1 3
__get()
S
80 1 3
__construct()
S
80 1 3
getParent()
S
100 1 0
resetPrevent()
S
100 1 0
isOptimizePrevented()
S
100 1 0
preventNextTry()
S
100 1 0
getExcludePatterns()
S
100 1 0
getImprovements()
S
100 1 0
loadMeta()
S
100 1 0
getAvif()
S
80 1 3